package com.lightboat.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lightboat.system.domain.CrmCustomer;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 客户Mapper接口
 * 
 * @author lightboat
 * @date 2025-08-14
 */
@Mapper
@Repository
public interface CrmCustomerMapper extends BaseMapper<CrmCustomer> {

    /**
     * 查询客户
     * 
     * @param customerId 客户主键
     * @return 客户
     */
    public CrmCustomer selectCrmCustomerByCustomerId(Long customerId);

    /**
     * 查询客户列表
     * 
     * @param crmCustomer 客户
     * @return 客户集合
     */
    public List<CrmCustomer> selectCrmCustomerList(CrmCustomer crmCustomer);

    /**
     * 删除客户
     * 
     * @param customerId 客户主键
     * @return 结果
     */
    public int deleteCrmCustomerByCustomerId(Long customerId);

    /**
     * 批量删除客户
     * 
     * @param customerIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCrmCustomerByCustomerIds(Long[] customerIds);
}
